import request from '@/utils/request'

// 查询产品子表列表
export function listScmProductsSub(query) {
  return request({
    url: '/scm/scmProductsSub/list',
    method: 'get',
    params: query
  })
}

// 查询产品子表详细
export function getScmProductsSub(id) {
  return request({
    url: '/scm/scmProductsSub/' + id,
    method: 'get'
  })
}

// 新增产品子表
export function addScmProductsSub(data) {
  return request({
    url: '/scm/scmProductsSub',
    method: 'post',
    data: data
  })
}

// 修改产品子表
export function updateScmProductsSub(data) {
  return request({
    url: '/scm/scmProductsSub',
    method: 'put',
    data: data
  })
}

// 删除产品子表
export function delScmProductsSub(id) {
  return request({
    url: '/scm/scmProductsSub/' + id,
    method: 'delete'
  })
}
